﻿using System;
using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace EFCore.Migrations.EMR
{
    /// <inheritdoc />
    public partial class EMR : Migration
    {
        /// <inheritdoc />
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.CreateTable(
                name: "EMR",
                columns: table => new
                {
                    MreId = table.Column<int>(type: "int", nullable: false)
                        .Annotation("SqlServer:Identity", "1, 1"),
                    FirstKindId = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    FirstKindName = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    SecondKindId = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    SecondKindName = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    ThirdKindId = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    ThirdKindName = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    MajorId = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    MajorName = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    HumanAmount = table.Column<int>(type: "int", nullable: true),
                    EngageType = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    Deadline = table.Column<DateTime>(type: "datetime2", nullable: true),
                    Register = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    Changer = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    RegistTime = table.Column<DateTime>(type: "datetime2", nullable: true),
                    ChangeTime = table.Column<DateTime>(type: "datetime2", nullable: true),
                    MajorDescribe = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    EngageRequired = table.Column<string>(type: "nvarchar(max)", nullable: true)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_EMR", x => x.MreId);
                });
        }

        /// <inheritdoc />
        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropTable(
                name: "EMR");
        }
    }
}
